package com.shop.dao;

import java.util.Date;
import java.util.List;

import com.shop.pojo.Order;

public interface IOrderDao {
	public Order findById(String orderid);
	
	public List<Order> find(String userid,int firstResult,int maxResult);
	
	public int count(String userid);
	
	public List<Order> find(int firstResult,int maxResult);
	
	public void update(Order order);
	
	public void delete(Order order);
	
	public void save(Order order);
	
	public int count(Order.OrderStatus orderStatus);
	
	public List<Order> find(Order.OrderStatus orderStatus, int firstResult, int maxResult);
	
	public List<Order> find(String orderid , String userid, Date startTime,Date endTime, int firstResult, int maxResult);
	
	public int count(String orderid , String userid, Date startTime,Date endTime);
	
	public int count();
}
